package com.duan.laugh.common.core.exception;

/**
 * 用户没有租户异常
 *
 * @author duanjw
 */
public class NotFoundTenantException extends BaseRuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 检查异常返回的错误码
     */
    public static Integer CODE = 3;
    /**
     * 异常消息
     */
    public static String MESSAGE = "用户没有租户";

    public NotFoundTenantException() {
        super(MESSAGE);
    }

    public NotFoundTenantException(String message) {
        super(message);
    }

    /**
     * 错误码
     *
     * @return
     */
    @Override
    public Integer getCode() {
        return CODE;
    }
}
